/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmDesignchange extends BasicModel<PmDesignchange> {
  createDate?: string; // 申请时间
  designchangecode?: string; // 设计变更ID
  negotiationcode?: string; // 洽商单编码
  projectcode?: string; // 工程编码
  name?: string; // name
  materialchange?: string; // 材料变更情况
  budgetchange?: string; // 预算变更情况
  contractpricechange?: string; // 合同价变更情况
  projectname?: string; // 工程名称
  fysfilepath?: string; // 变更附件地址
  cdcano?: string; // cdcano
  isinvolvewatermeter?: number; // 是否含水表
  changeremark?: string; // 变更原因
  changesettingid?: string; // 变更原因类型
  ddate?: string; // 确认变更日期
  fysfileid?: string; // fysfileid
  designerchangetype?: number; // 变更类型
  enduser?: string; // 洽商退回人
  msg?: string; // 洽商退回消息
  designchangeno?: string; // 设计变更编号
  budgetprice?: number; // 预算金额
  budgetremarks?: string; // 预算备注
}

export const pmDesignchangeList = (params?: PmDesignchange | any) =>
  defHttp.get<PmDesignchange>({ url: adminPath + '/design/change/pmDesignchange/list', params });

export const pmDesignchangeListData = (params?: PmDesignchange | any) =>
  defHttp.post<Page<PmDesignchange>>({ url: adminPath + '/design/change/pmDesignchange/listData', params });

export const pmDesignchangeForm = (params?: PmDesignchange | any) =>
  defHttp.get<PmDesignchange>({ url: adminPath + '/design/change/pmDesignchange/form', params });

export const pmDesignchangeSave = (params?: any, data?: PmDesignchange | any) =>
  defHttp.postJson<PmDesignchange>({ url: adminPath + '/design/change/pmDesignchange/save', params, data });

export const pmDesignchangeDelete = (params?: PmDesignchange | any) =>
  defHttp.get<PmDesignchange>({ url: adminPath + '/design/change/pmDesignchange/delete', params });
